home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global GRIDH, NB, NBB, GRIDY, GRIDN, DT, TURN, PUSHON, NYC, PUSHED, STARTED, NWGAME, SOND, BLUESCORE, REDSCORE, GAMELEN, OVE
- set HELP to 0
- set OVE to 0
- if (BLUESCORE >= GAMELEN) or (REDSCORE >= GAMELEN) then
- set OVE to 1
- end if
- if OVE = 1 then
- REMCART()
- REMOVESPRITE()
- updateStage()
- if SOND = 0 then
- puppetSound("FANFARE")
- end if
- end if
- if (OVE = 1) and (BLUESCORE > REDSCORE) then
- go("BWON")
- end if
- if (OVE = 1) and (REDSCORE > BLUESCORE) then
- go("RWON")
- end if
- if (OVE = 1) and (BLUESCORE = REDSCORE) then
- go("TIED")
- end if
- if STARTED = 0 then
- WAITFORROW()
- end if
- if PUSHON = 0 then
- SETUPPUSHERS()
- end if
- if NWGAME = 1 then
- set PUSHED to 1
- end if
- if PUSHED = 1 then
- RESETALLMEN()
- end if
- if PUSHED = 1 then
- WAITFORROW()
- end if
- set NYC to random(80)
- set NWGAME to 0
- if NYC < 4 then
- DOHAMMER()
- end if
- if (NYC = 32) or (NYC = 33) then
- DOHAMMERRED()
- end if
- if NYC = 63 then
- DOSITDOWNBLUE()
- end if
- if NYC = 77 then
- DOSITDOWNRED()
- end if
- if NYC = 55 then
- BLUEWAVE()
- end if
- if NYC = 42 then
- REDWAVE()
- end if
- if NYC = 28 then
- BLUELEAN()
- end if
- if NYC = 18 then
- REDLEAN()
- end if
- set the castNum of sprite 10 to 12
- set the castNum of sprite 29 to 4
- if OVE = 0 then
- repeat with N = 1 to 140
- if getAt(GRIDV, N) = 1 then
- set the locH of sprite 30 to getAt(GRIDH, N)
- set the locV of sprite 30 to getAt(GRIDY, N)
- updateStage()
- end if
- end repeat
- end if
- set the locH of sprite 30 to -50
- set the locV of sprite 30 to -50
- updateStage()
- set the keyDownScript to EMPTY
- go(the frame)
- end
-